package com.demoworld.tasks;

/**
 * Created by francis on 2017/12/11.
 */
public class ThreadTask extends Thread {
    @Override
    public void run() {
        long now = System.currentTimeMillis();
        System.out.println("ThreadTask:我的任务是输出当前的时间1=" + now);
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        now = System.currentTimeMillis();
        System.out.println("ThreadTask:我的任务是输出当前的时间2=" + now);
    }
}
